package com.migration.model.olddb;

import jakarta.persistence.*;
import lombok.Data;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * 用户代理人设置 实体类
 * 表名：sys_user_agent
 * 自动生成的实体类
 */
@Data
@Entity
@Table(name = "sys_user_agent")
public class SysUserAgent implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
     * 序号
     * 主键
     */
    @Id
    @Column(name = "id", nullable = false, length = 32)
    private String id;
    
    /**
     * 用户名
     */
    @Column(name = "user_name", length = 100)
    private String userName;
    
    /**
     * 代理人用户名
     */
    @Column(name = "agent_user_name", length = 100)
    private String agentUserName;
    
    /**
     * 代理开始时间
     */
    @Column(name = "start_time")
    private java.time.LocalDateTime startTime;
    
    /**
     * 代理结束时间
     */
    @Column(name = "end_time")
    private java.time.LocalDateTime endTime;
    
    /**
     * 状态0无效1有效
     */
    @Column(name = "status", length = 2)
    private String status;
    
    /**
     * 创建人名称
     */
    @Column(name = "create_name", length = 50)
    private String createName;
    
    /**
     * 创建人登录名称
     */
    @Column(name = "create_by", length = 50)
    private String createBy;
    
    /**
     * 创建日期
     */
    @Column(name = "create_time")
    private java.time.LocalDateTime createTime;
    
    /**
     * 更新人名称
     */
    @Column(name = "update_name", length = 50)
    private String updateName;
    
    /**
     * 更新人登录名称
     */
    @Column(name = "update_by", length = 50)
    private String updateBy;
    
    /**
     * 更新日期
     */
    @Column(name = "update_time")
    private java.time.LocalDateTime updateTime;
    
    /**
     * 所属部门
     */
    @Column(name = "sys_org_code", length = 50)
    private String sysOrgCode;
    
    /**
     * 所属公司
     */
    @Column(name = "sys_company_code", length = 50)
    private String sysCompanyCode;
    
    @Override
    public String toString() {
        return "SysUserAgent{" +
            "id=" + id +
            ", userName=" + userName +
            ", agentUserName=" + agentUserName +
            ", startTime=" + startTime +
            ", endTime=" + endTime +
            ", status=" + status +
            ", createName=" + createName +
            ", createBy=" + createBy +
            ", createTime=" + createTime +
            ", updateName=" + updateName +
            ", updateBy=" + updateBy +
            ", updateTime=" + updateTime +
            ", sysOrgCode=" + sysOrgCode +
            ", sysCompanyCode=" + sysCompanyCode +
        '}';
    }
} 